package acm.pta3;

import java.util.Scanner;

public class T1 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String input = scanner.nextLine();
        String[] parts = input.split(" ",2);
        String regex="^\\d+$";
        String A=parts[0].matches(regex)?parts[0]:"?";
        A = ((A.length() > 3) && !"1000".equals(A)) ? "?" : A;
        String B=parts[1].matches(regex)?parts[1]:"?";
        B =((B.length() > 3) && !"1000".equals(B)) ? "?" : B;
        String res="?";
        try {
            res=Integer.parseInt(A)+Integer.parseInt(B)+"";
        }catch (Exception e){}

        System.out.println(A+" + "+B+" = "+res);
    }
}
